package com.example.video.video_server.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 视频资源表
 * </p>
 *
 * @author yj
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="VideoResource对象", description="视频资源表")
@Table(name = "video_resource")
public class VideoResource implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    @IsAutoIncrement
    @IsKey
    @Column
    private Integer id;

    @ApiModelProperty(value = "视频基本信息id")
    @Column(name = "video_draId", comment = "视频基本信息id", isNull = false)
    private Integer videoDraId;

    @ApiModelProperty(value = "清晰度")
    @Column(name = "definition", comment = "清晰度")
    private String definition;

    @ApiModelProperty(value = "资源名清晰度描述")
    @Column(name = "definition_desc", comment = "资源名清晰度描述")
    private String definitionDesc;

    @ApiModelProperty(value = "资源路径")
    @Column(name = "url", comment = "资源路径", isNull = false)
    private String url;

    @ApiModelProperty(value = "存储桶名称")
    @Column(name = "bucket_name", comment = "存储桶名称", isNull = false)
    private String bucketName;

    @ApiModelProperty(value = "存储路径")
    @Column(name = "object_name", comment = "存储路径", isNull = false)
    private String objectName;

    @ApiModelProperty(value = "文件类型")
    @Column(name = "content_type", comment = "文件类型")
    private String contentType;

    @ApiModelProperty(value = "0:  待转码 1:转码中 2:已完成")
    @Column(name = "status", comment = "0:  待转码 1:转码中 2:已完成", type = "char",length = 1, isNull = false)
    private String status;


}
